<?php
namespace app\common\validate;

use think\Validate;

class UserInvoice extends Validate
{
    protected $rule =   [
        'type'  => 'require',
        'invoice_type'  => 'require',
        'invoice_title'  => 'require',
        'email'  => 'require|email',


    ];

    protected $message  =   [

        'type.require' => '类型不能为空',
        'invoice_type.require' => '发票类型不能为空',
        'invoice_title.require' => '发票抬头不能为空',
        'email' => '邮箱错误',


    ];
}